package com.gong.yuanma.spring;

import org.springframework.beans.factory.FactoryBean;

/**
 * @author GongChang
 * @version 1.0
 * @date 2021/7/5 0005 22:22
 */
public class PersonFactoryBean implements FactoryBean {
    @Override
    public Object getObject() throws Exception {
        return new Person();
    }

    @Override
    public Class<?> getObjectType() {
        return Person.class;
    }

    @Override
    public boolean isSingleton() {
        return false;
    }
}
